package com.qidian.mes.defect.mapper;

import com.qidianit.mes.pojo.DetectName;
import com.qidianit.mes.pojo.Detection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DetectionItemMapper {
    List<DetectName> selectList(@Param("detectionName") String detectionName,
                                @Param("detectionType") String detectionType,
                                @Param("detectionTool") String detectionTool,
                                @Param("detectionMethod") String detectionMethod,
                                @Param("standardValue") String standardValue,
                                @Param("unit") String unit,
                                @Param("errorCap") Long errorCap,
                                @Param("errorLow") Long errorLow
    );

    int insert(DetectName detectName);

    Integer update(DetectName detectName);

    //通过id查询这条数据
    DetectName selectById(Long detectionId);



}
